Skip to content

RDKEMW-22475 : [SECVULN][7.5] Remove sensitive information from property files in /etc - #582

Merged
nhanasi merged 3 commits into
developfrom
feature/RDKEMW-22475
Jul 29, 2026
Merged

RDKEMW-22475 : [SECVULN][7.5] Remove sensitive information from property files in /etc#582
nhanasi merged 3 commits into
developfrom
feature/RDKEMW-22475

Conversation

@madhubabutt

@madhubabutt madhubabutt commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Reason for change: Remove sensitive information from property files in /etc
Test Procedure: Build RDKE with the change, verify rdkfwupdater, crash upload and log upload, and confirm stability with no crashes.
Risks: Medium
Priority: P1
Signed-off-by: Tirumala, Madhubabu (Contractor) Madhubabu_Tirumala@comcast.com

Copilot AI review requested due to automatic review settings July 28, 2026 06:09
@madhubabutt
madhubabutt requested a review from a team as a code owner July 28, 2026 06:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes hardcoded credentials and some environment-specific endpoints from /etc property files to mitigate a reported security vulnerability and reduce sensitive data shipped in default configuration.

Changes:

  • Removed coredump/minidump upload usernames/passwords from etc/config.properties.
  • Removed several internal service/proxy/TFTP/CDL/image endpoints from etc/common.properties and etc/config.properties.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
etc/config.properties Removes hardcoded crash upload credentials and some endpoint configuration from /etc defaults.
etc/common.properties Removes internal proxy/CDL/image/TFTP endpoint defaults from /etc configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread etc/config.properties
Comment thread etc/common.properties
Copilot AI review requested due to automatic review settings July 28, 2026 06:21
@madhubabutt
madhubabutt force-pushed the feature/RDKEMW-22475 branch from 41f7742 to 2a74671 Compare July 28, 2026 06:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (3)

etc/config.properties:28

  • POTOMAC_SVR is still set to a specific IP address. If the intent is to remove sensitive/environment-specific endpoints from /etc, consider leaving this blank (or moving it to a secure/provisioned location).
POTOMAC_SVR=69.252.107.55

etc/common.properties:29

  • POTOMAC_SVR is still set to a specific IP address. If /etc/*.properties should not contain environment-specific endpoints, consider blanking this value (or provisioning it securely at runtime).
POTOMAC_SVR=69.252.107.55

etc/config.properties:24

  • PR title indicates removing sensitive information from /etc property files, but this file still hard-codes POTOMAC_USER and POTOMAC_IDENTITY_FILE. If these are environment-specific credentials/paths, they should be scrubbed (left blank) like the removed crash-upload credentials. Also note /etc/device.properties still contains CRASH_PORTAL_SERVER/CRASH_PORTAL_USER values, so the overall /etc scrub may be incomplete.
POTOMAC_USER=ccpstbscp
POTOMAC_IDENTITY_FILE=/.ssh/id_dropbear

@deepthi-ps deepthi-ps left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from RDKM side.

@nhanasi nhanasi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copilot AI review requested due to automatic review settings July 29, 2026 14:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (2)

etc/common.properties:29

  • Similar to etc/config.properties, this keeps POTOMAC_SVR as a hard-coded IP while removing other environment-specific values. If the intent is to scrub sensitive/environment-specific settings from /etc, consider leaving the keys present but empty (template-style) and blanking POTOMAC_SVR as well, so downstream scripts can still source the variables without shipping real addresses.
DEFAULT_IP=192.168.100.10
PROXY_FILE="/opt/persistent/usr/1112/703e/proxy-is-up"
LOG_PATH=/var/log
DEFAULT_PROXY_PORT=8080
POTOMAC_SVR=69.252.107.55

etc/config.properties:25

  • This file is used as a config contract for crash upload settings (it’s sourced by /lib/rdk/core_shell.sh). Right now it removes some sensitive values, but also removes the keys entirely and still hard-codes POTOMAC_USER / POTOMAC_IDENTITY_FILE and POTOMAC_SVR. To avoid leaking environment-specific info while keeping compatibility, consider keeping the removed keys with empty values and blanking the remaining Potomac settings here (values should be provisioned/overridden securely elsewhere).
# coredump upload settings
PORTAL_URL=
POTOMAC_USER=ccpstbscp
POTOMAC_IDENTITY_FILE=/.ssh/id_dropbear
CRASH_PORTAL_PATH="/opt/crashportal_uploads/coredumps/"

Copilot AI review requested due to automatic review settings July 29, 2026 16:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@nhanasi
nhanasi merged commit 3e4f553 into develop Jul 29, 2026
4 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants